<form id="add-form" class="form-horizontal" method="POST" action="{:url('jsave')}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">语言名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="name" value="{$data['name']|default=''}" class="form-control"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">语言类型:</label>
        <div class="col-xs-12 col-sm-8">
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 2px;" type="radio" name="type"  {if condition="(!empty($data)) AND $data['type'] == 1"}checked{/if} value="1">服务端</label>
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 2px;" type="radio" name="type" {if condition="(!empty($data)) AND $data['type'] == 2"}checked{/if} value="2">前端</label>
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 2px;" type="radio" name="type" {if condition="(!empty($data)) AND $data['type'] == 3"}checked{/if} value="3">设计类</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">语言描述:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea type="text" name="des" class="form-control">{$data['des']|default=''}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="id" value="{$data['id']|default=''}" class="form-control"/>
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>